package com.example.stu1.teacher.service;


import com.example.stu1.score.dao.ScoreMapper;
import com.example.stu1.teacher.dao.TeacherMapper;
import com.example.stu1.teacher.pojo.Teacher;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.ArrayList;

@Service
public class TeacherService {
    @Resource
    private TeacherMapper mapper;

    public Teacher query(Integer tno) {
        return mapper.query(tno);
    }

    public void update(Teacher teacher) {
        mapper.update(teacher);
    }
}
